#!/usr/bin/bash
#
#  Usage: xxxxxxxx
#  Issue: 2024-05-17
# Author: Leon Hsia
#   Mail: waxwork3@163.com
#
base_path=$(dirname $(realpath $0))
cd $base_path
image=$(grep 'image:' docker-compose.yml |awk '{print $2}')

$(docker ps |grep -v CONTAINER |awk '{print "docker exec -it -u root "$1" bash"}')
